<template>
  <div>
    <div class="form">
      <div class="search">
        <div class="date_picker">
          <div>
            <el-input
              placeholder="请输入姓名、班级、手机、工作单位、报名老师、推荐人或备注"
              v-model="keyword"
              style="width: 350px"
              class="search_info"
            >
              <i slot="prefix" class="el-input__icon el-icon-search"></i>
            </el-input>
            <el-checkbox-group v-model="checked" style="margin-top: 10px">
              <el-checkbox
                v-for="item in infomation"
                :label="item.key"
                :key="item.key"
                >{{ item.value }}</el-checkbox
              >
            </el-checkbox-group>
          </div>
          <div>
            <el-button @click="reset()" class="searchBtn">重置</el-button>
            <el-button type="primary" @click="getList(1)" class="searchBtn"
              >搜索</el-button
            >
            <el-button type="primary" @click="add()" class="searchBtn"
              >新增</el-button
            >
          </div>
        </div>
        <div class="out">
          <el-button @click="printOut()">学员模板导出</el-button>
          <el-button @click="printIn()">学员模板导入</el-button>
          <el-button @click="exportList()">学员信息导出</el-button>
        </div>
      </div>
      <el-table
        class="listTable"
        v-loading="listLoading"
        :data="list"
        border
        fit
        @row-click="rowClick"
        highlight-current-row
        height="600"
      >
        <el-table-column label="序号" type="index" align="center">
        </el-table-column>
        <el-table-column
          label="学员编号"
          prop="userId"
          width="80"
          align="center"
        >
          <template slot-scope="{ row }">
            <span>{{ row.userId }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="学员姓名"
          prop="studentName"
          width="80"
          align="center"
        >
          <template slot-scope="{ row }">
            <span>{{ row.studentName }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="学员班级"
          show-overflow-tooltip
          prop="className"
          align="center"
          width="220px"
        >
          <template slot-scope="{ row }">
            <div>
              <i class="el-icon-edit point" @click.stop="rowCellClick(row)"></i>
              {{ row.className }}
            </div>
          </template>
        </el-table-column>
        <el-table-column
          label="报名老师"
          prop="registeredTeacher"
          width="80"
          align="center"
        >
          <template slot-scope="{ row }">
            <span>{{ row.registeredTeacher }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="注册时间"
          width="100"
          prop="createTime"
          show-overflow-tooltip
          align="center"
        >
          <template slot-scope="{ row }">
            <span>{{ row.createTime }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="注册渠道"
          width="100"
          prop="source"
          align="center"
        >
          <template slot-scope="{ row }">
            <span>{{ row.source | source }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="入班时间"
          width="100"
          show-overflow-tooltip
          prop="createTime"
          align="center"
        >
          <template slot-scope="{ row }">
            <span>{{ row.onDutyTime }}</span>
          </template>
        </el-table-column>
        <el-table-column label="手机号码" show-overflow-tooltip width="110px">
          <template slot-scope="{ row }">
            <span>{{ row.phonenumber }}</span>
          </template>
        </el-table-column>
        <!-- <el-table-column label="教育程度" width="80" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.education }}</span>
          </template>
        </el-table-column> -->
        <el-table-column
          label="工作单位"
          width="80"
          align="center"
          :show-overflow-tooltip="true"
        >
          <template slot-scope="{ row }">
            {{ row.work }}
          </template>
        </el-table-column>
        <el-table-column label="报考级别" width="80" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.testLevel }}</span>
          </template>
        </el-table-column>
        <el-table-column label="报考方向" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.testDirection }}</span>
          </template>
        </el-table-column>
        <el-table-column label="推荐人" width="70" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.reference }}</span>
          </template>
        </el-table-column>
        <el-table-column label="应收（元）" width="90" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.receivable }}</span>
          </template>
        </el-table-column>
        <el-table-column label="实收（元）" width="90" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.receipts }}</span>
          </template>
        </el-table-column>
        <el-table-column label="支付方式" width="90" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.payType | payList }}</span>
          </template>
        </el-table-column>
        <el-table-column label="答题数" width="60" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.answerNum }}</span>
          </template>
        </el-table-column>
        <!-- <el-table-column label="看视频数" width="80" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.videoNum }}</span>
          </template>
        </el-table-column> -->
        <el-table-column label="看视频时长" width="90" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.videoPlayTime }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="已购商品名"
          width="100"
          align="center"
          show-overflow-tooltip
        >
          <template slot-scope="{ row }">
            <span>{{ row.buyGoodsName }}</span>
          </template>
        </el-table-column>
        <!-- <el-table-column label="理论时间" width="100" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.theoreticalTime }}</span>
          </template>
        </el-table-column>
        <el-table-column label="实操时间" width="100" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.operationTime }}</span>
          </template>
        </el-table-column> -->
        <el-table-column label="备注" width="100" align="center">
          <template slot-scope="{ row }">
            <span>{{ row.remark }}</span>
          </template>
        </el-table-column>
        <el-table-column
          label="操作"
          align="center"
          width="270"
          class-name="small-padding fixed-width"
        >
          <template slot-scope="scope">
            <el-button
              size="mini"
              type="text"
              icon="el-icon-info"
              @click.stop="preview(scope.row.userId)"
              v-hasPermi="['financeProduct:product:edit']"
              >详情</el-button
            >
            <el-button
              size="mini"
              type="text"
              icon="el-icon-edit"
              v-hasPermi="['financeProduct:product:remove']"
              @click.stop="edit(scope.row.userId)"
              >编辑</el-button
            >
            <el-button
              size="mini"
              type="text"
              icon="el-icon-edit"
              v-hasPermi="['financeProduct:product:remove']"
              @click.stop="resetPsw(scope.row.userId)"
              >密码重置</el-button
            >
            <el-button
              size="mini"
              type="text"
              icon="el-icon-delete"
              @click.stop="stop(scope.row.userId)"
              v-hasPermi="['financeProduct:product:remove']"
              v-if="scope.row.status == '0'"
              >停用</el-button
            >
            <el-button
              size="mini"
              type="text"
              icon="el-icon-info"
              @click.stop="unBind(scope.row.userId)"
              >解绑</el-button
            >
            <el-button
              size="mini"
              type="text"
              icon="el-icon-delete"
              @click.stop="del(scope.row.userId)"
              >删除</el-button
            >
            <el-button
              size="mini"
              type="text"
              icon="el-icon-delete"
              @click.stop="open(scope.row.userId)"
              v-hasPermi="['financeProduct:product:remove']"
              v-if="scope.row.status == '1'"
              >启用</el-button
            >
          </template>
        </el-table-column>
      </el-table>
      <el-pagination
        :total="total"
        layout="total, sizes, prev, pager, next"
        :page-size="limit"
        :page-sizes="[10, 20, 50, 100]"
        @size-change="handleSizeChange"
        :current-page.sync="curPage"
        @current-change="getList($event)"
        class="sortStyle"
      />
    </div>
    <el-dialog
      :visible.sync="classCard"
      title="班级选择"
      width="648px"
      height="150px"
    >
      <el-select
        v-model="modelClass"
        placeholder="请选择学员班级"
        filterable
        style="width: 400px; margin-bottom: 16px"
      >
        <el-option
          v-for="item in classList"
          :key="item.classId"
          :label="item.className"
          :value="item.classId"
        ></el-option>
      </el-select>
      <div class="footer">
        <el-button @click="classCard = false"> 取消 </el-button>
        <el-button type="primary" @click="save"> 保存 </el-button>
      </div>
    </el-dialog>
    <el-dialog
      :visible.sync="visible"
      title="学员编辑"
      width="660px"
      height="150px"
    >
      <el-form ref="form" :model="form" label-width="100px">
        <el-divider content-position="left">基本属性</el-divider>
        <el-row>
          <el-col :span="11">
            <el-form-item label="学员姓名：">
              <el-input
                v-model="form.studentName"
                placeholder="请输入学员姓名"
              ></el-input>
            </el-form-item>
          </el-col>

          <el-col :span="11">
            <el-form-item label="学员班级：">
              <el-select v-model="form.classId" placeholder="请选择学员班级">
                <el-option
                  v-for="item in classList"
                  :key="item.classId"
                  :label="item.className"
                  :value="item.classId"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="11">
            <el-form-item label="性别：">
              <el-select v-model="form.sex" placeholder="请选择学员性别">
                <el-option
                  v-for="item in sexList"
                  :key="item.key"
                  :label="item.value"
                  :value="item.key"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="11">
            <el-form-item label="手机号：">
              <el-input
                v-model="form.phonenumber"
                placeholder="请输入手机号"
                clearable
                size="small"
              />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="11">
            <el-form-item label="报名老师：">
              <el-input
                v-model="form.registeredTeacher"
                placeholder="请输入报名老师"
                clearable
                size="small"
              />
            </el-form-item>
          </el-col>
          <el-col :span="11">
            <el-form-item label="身份证号：">
              <el-input
                v-model="form.identificationCard"
                placeholder="请输入身份证号"
                clearable
                size="small"
              />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="11">
            <el-form-item label="支付方式：">
              <el-select v-model="form.payType" placeholder="请选择支付方式">
                <el-option
                  v-for="item in payLists"
                  :key="item.key"
                  :label="item.value"
                  :value="item.key"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-form-item label="工作单位">
          <el-input type="textarea" v-model="form.work"></el-input>
        </el-form-item>
        <el-divider content-position="left">报考属性</el-divider>
        <el-row>
          <el-col :span="11">
            <el-form-item label="报考级别：">
              <el-select v-model="form.testLevel" placeholder="请选择报考级别">
                <el-option
                  v-for="item in levelList"
                  :key="item.key"
                  :label="item.value"
                  :value="item.key"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="11">
            <el-form-item label="报考方向：">
              <el-select
                v-model="form.testDirection"
                placeholder="请选择报考方向"
              >
                <el-option
                  v-for="item in directList"
                  :key="item.key"
                  :label="item.value"
                  :value="item.key"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="11">
            <el-form-item label="应收：">
              <el-input v-model="form.receivable"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="11">
            <el-form-item label="实收：">
              <el-input v-model="form.receipts"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="11">
            <el-form-item label="推荐人：">
              <el-input
                v-model="form.reference"
                placeholder="请输入推荐人"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-form-item label="备注">
            <el-input type="textarea" v-model="form.remark"></el-input>
          </el-form-item>
        </el-row>
      </el-form>
      <div class="footer">
        <el-button @click="visible = false"> 取消 </el-button>
        <el-button type="primary" @click="editSave"> 保存 </el-button>
      </div>
    </el-dialog>
    <el-dialog :visible.sync="uploadMenu" width="648px" height="450px">
      <div class="footers">
        <label for="fileExport" class="uploadBtn">上传名单</label>
        <input
          type="file"
          id="fileExport"
          @change="handleFileChanges_1"
          ref="inputers_1"
        />
      </div>
    </el-dialog>
  </div>
</template>

<script>
import {
  studentDel,
  studentExport,
  resetPwd,
  studentOpen,
  studentStop,
  unBind,
  getStudentList,
  testDelete,
  classList,
  addStudents,
  studentEdit,
  studentImport,
  templateExport,
} from "@/api/system/user";
import {} from "@/api/article";
export default {
  components: {},
  filters: {
    source: function (value) {
      switch (value) {
        case "1":
          return "公众号";
        case "2":
          return "小程序";
      }
    },
    payList: function (value) {
      switch (value) {
        case "1":
          return "微信";
        case "2":
          return "支付宝";
        case "3":
          return "对公";
        case "4":
          return "现金";
      }
    },
  },
  data() {
    return {
      modelClass: null,
      classCard: false,
      list: [],
      listLoading: false,
      total: 0,
      limit: 10,
      curPage: 1,
      uploadMenu: false,
      listData: [],
      studentName: "",
      registeredTeacher: "",
      // studentClass: '',
      phonenumber: "",
      work: "",
      payLists: [
        { key: "1", value: "微信" },
        { key: "2", value: "支付宝" },
        { key: "3", value: "对公" },
        { key: "4", value: "现金" },
      ],
      page: this.$route.query.page,
      keyword: null,
      personClass: "",
      classList: [],
      userId: null,
      visible: false,
      form: {
        studentName: "",
        sex: "",
        phonenumber: "",
        registeredTeacher: "",
        identificationCard: "",
        payType: null,
        work: "",
        testLevel: null,
        testDirection: null,
        receivable: "",
        receipts: "",
        reference: "",
        remark: "",
      },
      sexList: [
        { key: "0", value: "男" },
        { key: "1", value: "女" },
        { key: "2", value: "未知" },
      ],
      levelList: [
        { key: "1", value: "初级" },
        { key: "2", value: "中级" },
        { key: "3", value: "高级" },
        { key: "4", value: "技师（暂未开放）" },
      ],
      directList: [
        { key: "1", value: "监控方向" },
        { key: "2", value: "维保方向" },
      ],
      checked: [1, 2, 3],
      infomation: [
        { key: 1, value: "学员姓名" },
        { key: 2, value: "学员班级" },
        { key: 3, value: "手机号" },
        { key: 4, value: "工作单位" },
        { key: 5, value: "报名老师" },
        { key: 6, value: "推荐人" },
        { key: 7, value: "备注" }
      ],
    };
  },
  created() {
    this.getClassList();
  },
  mounted() {
    if (Number(this.$route.query.personClass)) {
      this.personClass = Number(this.$route.query.personClass);
    }
    if (this.page) {
      // this.curPage =
      this.getList(this.page);
    } else {
      this.getList(1);
    }

    // this.getList(1);
  },
  methods: {
    rowClick(row) {
      console.log(row);
      this.visible = true;
      this.form = row;
    },
    rowCellClick(row, column, cell) {
      this.modelClass = null;
      this.userId = row.userId;
      this.classCard = true;
    },
    unBind(id) {
      unBind(id).then((res) => {
        if (res.code == 200) {
          this.$message({ message: res.msg, type: "success" });
          this.getList(1);
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    printIn() {
      this.uploadMenu = true;
    },
    //上传模板
    handleFileChanges_1(e) {
      let inputDOM = this.$refs.inputers_1;
      this.file = inputDOM.files[0]; // 通过DOM取文件数据
      this.formData = new FormData(); //new一个formData事件
      this.formData.append("file", this.file); //将file属性添加到formData里
      this.loading = this.$loading({
        lock: true,
        text: "上传中",
        background: "rgba(0, 0, 0, 0.7)",
      });
      //此时formData就是我们要向后台传的参数了
      studentImport(this.formData).then((res) => {
        this.loading.close();
        e.srcElement.value = "";
        if (res.code == 200) {
          this.uploadMenu = false;
          this.$message({ message: "上传成功", type: "success" });
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    printOut() {
      templateExport().then((res) => {
        let blod = new Blob([res], {
          type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
        });
        if (window.navigator && window.navigator.msSaveOrOpenBlob) {
          window.navigator.msSaveOrOpenBlob(blod, "消联答题学员模板");
        } else {
          const link = document.createElement("a");
          document.body.appendChild(link);
          link.style = "display:none";
          link.href = window.URL.createObjectURL(blod);
          link.download = "消联答题学员模板";
          link.click();
          link.remove();
          // window.URL.revokeObjectURL(url);
        }
      });
    },
    editSave() {
      let params = {
        userId: this.form.userId,
        classId: this.form.classId,
        studentName: this.form.studentName,
        sex: this.form.sex,
        phonenumber: this.form.phonenumber,
        identificationCard: this.form.identificationCard,
        work: this.form.work,
        registeredTeacher: this.form.registeredTeacher,
        payType: this.form.payType,
        testLevel: this.form.testLevel,
        testDirection: this.form.testDirection,
        reference: this.form.reference,
        receivable: this.form.receivable,
        receipts: this.form.receipts,
        remark: this.form.remark,
      };
      studentEdit(params).then((res) => {
        if (res.code == 200) {
          this.$message({ message: res.msg, type: "success" });
          this.visible = false;
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    save() {
      this.classCard = false;
      let params = {
        studentIds: [this.userId],
        classId: this.modelClass,
      };
      addStudents(params).then((res) => {
        if (res.code == "200") {
          this.getList(this.page);
          this.$message({ message: res.msg, type: "success" });
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    getClassList() {
      this.classList = [{ classId: -1, className: "无班级人员" }];
      classList().then((res) => {
        if (res.code == "200") {
          res.rows.forEach((element) => {
            this.classList.push(element);
          });
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    del(id) {
      this.$confirm("确定删除该学员吗？", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      }).then(() => {
        studentDel(id).then((res) => {
          if (res.code == "200") {
            this.$message({ message: res.msg, type: "success" });
            this.getList(1);
          } else {
            this.$message({ message: res.msg, type: "error" });
          }
        });
      });
    },
    exportList() {
      let params = {
        studentName: this.studentName,
        registeredTeacher: this.registeredTeacher,
        // className: this.studentClass,
        phonenumber: this.phonenumber,
        work: this.work,
      };
      this.$confirm("是否确认导出所有角色数据项?", "警告", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(function () {
          return studentExport(params);
        })
        .then((response) => {
          this.download(response.msg);
        });
    },
    resetPsw(id) {
      this.$confirm("确定重置该学员密码吗？", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      }).then(() => {
        let params = {
          userId: id,
          password: "123456",
        };
        resetPwd(params).then((res) => {
          if (res.code == "200") {
            this.$message({ message: res.msg, type: "success" });
          } else {
            this.$message({ message: res.msg, type: "error" });
          }
        });
      });
    },
    stop(id) {
      studentStop(id).then((res) => {
        if (res.code == 200) {
          this.$message({ message: res.msg, type: "success" });
          this.getList(1);
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    open(id) {
      studentOpen(id).then((res) => {
        if (res.code == 200) {
          this.$message({ message: res.msg, type: "success" });
          this.getList(1);
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    reset() {
      this.studentName = "";
      this.registeredTeacher = "";
      this.personClass = "";
      // this.studentClass = ''
      this.phonenumber = "";
      this.keyword = null;
      this.work = "";
      this.checked = [1, 2, 3];
      this.getList(1);
    },
    /** 查询用户列表 */
    getList(page) {
      let params = {
        pageNum: page,
        pageSize: this.limit,
        // studentName: this.studentName,
        // registeredTeacher: this.registeredTeacher,
        // // className: this.studentClass,
        // phonenumber: this.phonenumber,
        // work: this.work,
      };
      if (this.keyword) {
        params.background = '1'
      }
      if (this.checked.includes(1)) {
        params.studentName = this.keyword;
      }
      if (this.checked.includes(2)) {
        // params.studentName = this.studentName
        if (this.personClass == -1) {
          params.delFlag = 3;
        } else {
          // params.classId = this.personClass;
          params.className = this.keyword;
        }
      }
      if (this.checked.includes(3)) {
        params.phonenumber = this.keyword;
      }
      if (this.checked.includes(4)) {
        params.work = this.keyword;
      }
      if (this.checked.includes(5)) {
        params.registeredTeacher = this.keyword;
      }
      if (this.checked.includes(6)) {
        params.reference = this.keyword;
      }
      if (this.checked.includes(7)) {
        params.remark = this.keyword;
      }
      // if (this.personClass == -1) {
      //   params.delFlag = 3;
      // } else {
      //   params.classId = this.personClass;
      // }
      this.listLoading = true;
      getStudentList(params).then((res) => {
        this.listLoading = false;
        if (res.code == 200) {
          this.list = res.rows;
          this.list.forEach((element) => {
            switch (element.education) {
              case "1":
                element.education = "博士及以上";
                break;
              case "2":
                element.education = "硕士";
                break;
              case "3":
                element.education = "本科";
                break;
              case "4":
                element.education = "专科";
                break;
              case "5":
                element.education = "高中";
                break;
              case "6":
                element.education = "其他";
                break;
            }
            switch (element.testLevel) {
              case "1":
                element.testLevel = "初级";
                break;
              case "2":
                element.testLevel = "中级";
                break;
              case "3":
                element.testLevel = "高级";
                break;
              case "4":
                element.testLevel = "技师（暂未开放）";
                break;
            }
            switch (element.testDirection) {
              case "1":
                element.testDirection = "监控方向";
                break;
              case "2":
                element.testDirection = "维保方向";
                break;
            }
          });

          this.total = res.total;
          this.curPage = Number(page);
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    preview(id) {
      this.$router.push({
        path: "/studentDetail",
        query: { id: id, page: this.curPage, personClass: this.personClass },
      });
    },
    edit(id) {
      this.$router.push({
        path: "/studentEdit",
        query: { id: id, page: this.curPage, personClass: this.personClass },
      });
    },
    handleDelete(id) {
      this.$confirm("是否确认删除？", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "info",
      })
        .then(() => {
          testDelete(id).then((res) => {
            if (res.code == "200") {
              this.getList();
              this.$message({ message: res.msg, type: "success" });
            } else {
              this.$message({ message: res.msg, type: "error" });
            }
          });
        })
        .catch(() => {});
    },
    handleSizeChange(val) {
      this.limit = val;
      this.getList(1);
    },
    add() {
      this.$router.push({
        path: "/studentAdd",
        query: { page: this.curPage, personClass: this.personClass },
      });
    },
  },
};
</script>
<style scoped>
.form {
  padding-left: 26px;
  padding-right: 24px;
  padding-top: 24px;
  background: #fff;
}
.search {
  display: flex;
  position: relative;
}
.search_info {
  width: 192px;
  height: 40px;
  margin-right: 16px;
}
.searchBtn {
  margin-left: 16px;
  height: 36px;
}
.sortStyle {
  height: 19px;
  float: right;
  /* right: 24px; */
  margin-top: 20px;
  margin-bottom: 30px;
}
.pos_right_btn {
  position: absolute;
  right: 0;
}
.opt_font {
  cursor: pointer;
  color: #2e82ff;
}
.detail_title {
  font-size: 16px;
  font-weight: 400;
  color: #212121;
  line-height: 22px;
}
.detail_title span {
  padding-left: 4px;
  background: #1e88e5;
  margin-right: 12px;
}
.row {
  display: flex;
  padding-bottom: 12px;
}
.detail_info {
  padding-top: 16px;
}
.info_left {
  display: flex;
}
.info_right {
  display: flex;
  padding-left: 202px;
}
.info_left_title {
  font-size: 14px;
  font-weight: 400;
  color: #616161;
  line-height: 20px;
  width: 112px;
  margin-right: 16px;
}
.info_left_content {
  font-size: 14px;
  font-weight: 400;
  color: #212121;
  line-height: 20px;
  width: 150px;
}
.pos_top {
  padding-top: 12px;
}
.detailTable {
  margin-top: 16px;
}
.opt_font {
  color: #1e88e5;
  cursor: pointer;
}
.page_pos {
  text-align: right;
  padding-top: 10px;
}
.backBtn {
  text-align: center;
  margin-top: 10px;
}
/deep/ .el-dialog {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* max-height: calc(100% -30px); */
  /* max-width: ; */
}
/deep/ .el-dialog .el-dialog__body {
  flex: 1;
  height: 700px;
  overflow-y: auto;
  padding-top: 0;
}
.tab {
  display: flex;
  position: absolute;
  right: 32px;
  top: 14px;
}
.tab_border {
  border: 1px solid #409eff;
  color: #409eff;
  padding: 10px 12px;
  font-size: 14px;
  margin-right: 16px;
}
.change {
  border: 1px solid #f56c6c;
  color: #f56c6c;
}
.listTable {
  margin-top: 17px;
}
.out {
  position: absolute;
  right: 0;
}
.footer {
  text-align: center;
}
.point {
  cursor: pointer;
}
.date_picker {
  display: flex;
}
</style>
